#ifndef AC_CALYPSO_STATSPAGE
#define AC_CALYPSO_STATSPAGE

#include "MainWindow.h"

class StatsThread : public QThread {
	Q_OBJECT

	StatsThread(const StatsThread&);

public:
	StatsThread();
	~StatsThread();

	void run();

signals:
	void result(QImage resultImage);
};

class StatsPage : public QWidget {
	Q_OBJECT
	
	Ui::MainWindowClass * mUi;
	
	StatsThread * mThread;
	
protected:
	void showEvent(QShowEvent * e);
	
public:
	StatsPage();
	~StatsPage();
	
	void setUi(Ui::MainWindowClass * ui);
	
public slots:
	void result(QImage resultImage);
	void setTime();
};

#endif
